//
//  YWToast.swift
//  loveHHEveryDay
//
//  Created by yw on 2025/4/9.
//

import Foundation
import Toaster

class YWToast {
    class func show(
        text:String?,
        delay:TimeInterval = 0,
        duration:TimeInterval = 1.2,
        bottomOffsetPortrait:CGFloat = 120) {
            let toast = Toast(text: text, delay: delay, duration: duration)
            toast.view.bottomOffsetPortrait = bottomOffsetPortrait
            toast.view.font = UIFont.systemFont(ofSize: 18)
            toast.show()
        }
}
